<?php include("../mvz-config/system/begin.php"); ?>
<?php include("../mvz-config/system/session_start.php"); ?>
<?php include("../mvz-config/system/session.php"); ?>
<?php
	addLogByUsername('Logout');
	
	/*
    session_unset();
    session_destroy();
    session_write_close();
    setcookie(session_name(),'',0,'/');
    session_regenerate_id(true);
	
	echo'<meta http-equiv="refresh" content="0;URL='.URL_HOME_SITE_ADMIN.'/login.php?msg=lo" >';	// logout (lo) = logout successful
	die();
	*/
	setSessionMsg("lo");
	echo "<meta http-equiv='refresh' content='0;URL=login.php' />";	// logout (lo) = logout successful
	die;
?>
<?php include("../mvz-config/system/end.php"); ?>